//
//  MyWords.m
//  CslpodDictionary
//
//  Created by gtts on 13-4-24.
//  Copyright (c) 2013年 cslpod. All rights reserved.
//

#import "MyWords.h"

@implementation MyWordsDAO

const static NSString* tablename = @"dic_mywords";//表名

+ (Class)getBindingModelClass
{
    return [MyWords class];
}

+(const NSString *)getTableName
{
    return tablename;
}

@end

@implementation MyWords
@synthesize wordID;
@synthesize level;
@synthesize createDate;

- (id)init
{
    if (self = [super init]) {
        self.primaryKey = @"wordID";
    }
    return self;
}

- (id)initWithJsonDictionary:(NSDictionary *)dic
{
    if (self =[super init]) {
        self.wordID = [dic objectForKey:@"wordID"];
        self.level = [dic objectForKey:@"level"];
        self.createDate = [dic objectForKey:@"createDate"];
    }
    return self;
}

@end
